import './assets/reset.css'
import './assets/earth.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import { ESObjectsManager } from 'earthsdk3'
import { ESCesiumViewer } from 'earthsdk3-cesium'
import { ESUeViewer } from 'earthsdk3-ue'

const app = createApp(App)
////1.实例化一个场景对象管理器 ,注册UE和Cesium两种渲染引擎
//ESObjectsManager是EarthSDK JS的入口类，开发的时候，需要先创建此类的对象，其他所有功能都从此对象引用和调用。
const objm = new ESObjectsManager(ESCesiumViewer, ESUeViewer)
//调试
window.g_objm = objm
// 使用app.provide方法在应用级别提供objm
app.provide('objm', objm)
app.use(createPinia())
app.use(router)

app.mount('#app')
